<link href="/css/form.css" type="text/css" rel="stylesheet" />
<?php $form=$this->beginWidget('CActiveForm', array(
		'id'=>'mtsys-base-form',
		'enableAjaxValidation'=>false,
		'htmlOptions'=>array(
				'class' => 'form',
		),
)); ?>
<fieldset class="grey inline">
	<label>所属单位 <span class="required">*</span></label>
    <label><?php echo $province->PROVINCE_NAME; ?> - <?php echo $city->CITY_NAME; ?> - <?php echo $county->COUNTY_NAME;?></label>
	<input name="MtsysBase[PROVINCE_ID]" value="<?php echo $province->PROVINCE_ID; ?>" type="hidden">
    <input name="MtsysBase[CITY_ID]" value="<?php echo $city->CITY_ID; ?>" type="hidden">
    <input name="MtsysBase[COUNTY_ID]" value="<?php echo $county->COUNTY_ID;?>" type="hidden">
	<br/>
	<?php echo $form->labelEx($model,'BASE_TYPE'); ?>
    <?php 
	//echo $form->dropDownList($model,'BASE_TYPE',CHtml::listData($base_types, 'id', 'name'))."&nbsp;";
	?>
	
	<select name="MtsysBaseType[RECORD_ID]"> 
		<?php foreach($base_types as $bt){?>
		<option <?php echo ($model->BASE_TYPE == $bt->id)?'selected="selected"':'';?>value="<?php echo $bt->id;?>"><?php echo $bt->name;?>
	    <?php } ?>
		</option>		
		</select>
	
	
	<?php //echo $form->textField($model,'BASE_TYPE'); ?>
    <br/>
	<?php echo $form->labelEx($model,'BASE_NAME'); ?>
	<?php echo $form->textField($model,'BASE_NAME',array('size'=>50,'maxlength'=>50)); ?>
    <?php //echo $form->error($model,'BASE_NAME'); ?>
	<br/>

	<?php echo CHtml::submitButton($model->isNewRecord ? '创建' : '保存',array('class'=>'button blue')); ?>
</fieldset>
<?php $this->endWidget(); ?>

